<?php
/**
 * This is the file to define Debug.
 * 
 * @author	Justin Yoo
 * @version	0.0.1.0001
 * @package	KYR.Core
 * 
 */

//	Checks if this file is called within the framework; otherwise terminates.
if (!defined("IS_FRAMEWORK") || !IS_FRAMEWORK)	header("Location: http://".$_SERVER["HTTP_HOST"]."/error/404");

/**
 * This is class Debug that handles debug string.
 *
 * Handles the debug string.
 * 
 * @author	Justin Yoo
 * @package	KYR.Core
 * 
 */
class Debug
{
	/**
	 * Prints the debug string to the screen.
	 *
	 * @access	public
	 * @param	string	$tag	HTML tag for debug.
	 * @param	string	$msg	String to be displayed.
	 * @return	string			Returns the debug string to the screen.
	 * @static
	 *
	 */
	public static function PrintScreen($tag, $msg)
	{
		$html = "<div class=\"debug\">\n";
		$html .= "\t<p>DEBUG STRING</p>\n";
		$html .= "\t<".$tag.">".print_r($msg, true)."</".$tag.">\n";
		$html .= "</div>\n";
		echo $html;
	}
}
?>
